package com.itcast.service.impl;

import com.itcast.mapper.GcMapper;
import com.itcast.pojo.Gc;
import com.itcast.service.Gcservice;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2020-06-19
 */
@Service("gcservice")
public class GcServiceImpl extends ServiceImpl<GcMapper, Gc> implements Gcservice {

    @Autowired(required = false)
    private  GcMapper gcMapper;
    @Override
    public List<Gc> getByGid(Integer id) {
        return gcMapper.getByGid(id);
    }

    @Override
    public int selectlike(Integer uid) {
        return gcMapper.selectlike(uid);
    }
}
